from urllib3 import PoolManager

manager = PoolManager(num_pools=1)
# r1 = manager.request('GET', 'http://baidu.com/')
# r2 = manager.request('HEAD', 'http://baidu.com/')
# print(len(manager.pools))

# p_dict = {
#     "username": 'admin',
#     "password": "password"
# }
# for i in range(4):
#     r = manager.request('POST', "http://127.0.0.1:5000/signin", fields=p_dict)
#     print(r.status)
#     print(r.data)
#     print(len(manager.pools))

filename = "askdaklhdakl.jspo"
filename = filename[1:filename.find(".")]
print(filename)